"""
需求：
1. 请求TPshop项目的登录接口，请求数据（username: 13088888888, password: 123456,
verify_code: 1234）
2. 登录接口URL：http://localhost/index.php?m=Home&c=User&a=do_login
"""
# 導包
import requests

# 發送請求
login_url = "http://localhost/index.php?m=Home&c=User&a=do_login"
login_data = {
    "username": 13088888888,
    "password": 123456
}
response = requests.post(url=login_url, data=login_data)
# 查看響應
response.encoding = "utf-8"
print(response.json())